package org.tp8.sampleapp.loader.util;

import org.apache.log4j.Logger;

/**
 * The Class SampleAppLogger.
 */
public class SampleLoaderLogger {

	/**
	 * The log.
	 */
	private transient final Logger log;

	/**
	 * Instantiates a new sample app logger.
	 * 
	 * @param clazz
	 *            the clazz
	 */
	public SampleLoaderLogger(final Class<?> clazz) {
		this.log = Logger.getLogger(clazz);
	}

	/**
	 * Debug.
	 * 
	 * @param message
	 *            the message
	 */
	public void debug(final String message) {
		this.log.debug(message);
	}

	/**
	 * Error.
	 * 
	 * @param message
	 *            the message
	 */
	public void error(final String message) {
		this.log.error(message);
	}

	/**
	 * Error.
	 * 
	 * @param message
	 *            the message
	 * @param throwable
	 *            the throwable
	 */
	public void error(final String message, final Throwable throwable) {
		this.log.error(message, throwable);
	}

	/**
	 * Error.
	 * 
	 * @param throwable
	 *            the throwable
	 */
	public void error(final Throwable throwable) {
		this.log.error(throwable);
	}

	/**
	 * Info.
	 * 
	 * @param message
	 *            the message
	 */
	public void info(final String message) {
		this.log.info(message);
	}

	/**
	 * Warn.
	 * 
	 * @param message
	 *            the message
	 */
	public void warn(final String message) {
		this.log.warn(message);
	}
}
